package cn.exrick.xboot.modules.Information.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author Lyg
 */
@Data
@Entity
@Table(name = "t_cross")
@TableName("t_cross")
@ApiModel(value = "断面信息")
public class Cross extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "断面编号")
    private String crossNum;

    @ApiModelProperty(value = "所属河流")
    private String riverId;

    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "所属河流名称")
    private String riverName;

    @ApiModelProperty(value = "断面位置")
    private String crossPlace;

    @ApiModelProperty(value = "所属区域")
    private String withDepartment;

    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "所属区域名称")
    private String withDepartmentName;


    @ApiModelProperty(value = "化学需氧量(mg/L)")
    private String cod;

    @ApiModelProperty(value = "氨氮(mg/L)")
    private String nh3;

    @ApiModelProperty(value = "总磷(mg/L)")
    private String tp;

}